/*
 *    Copyright (c) 2018-2025, cloud All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the pig4cloud.com developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: cloud
 */

package com.fuyao.cloud.asset.dto.apply;

import cn.hutool.core.collection.CollUtil;
import com.fuyao.cloud.common.data.mybatis.SearchCondition;
import com.fuyao.cloud.common.data.mybatis.SearchOp;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.Arrays;
import java.util.List;

/**
 * 采购申请创建对象
 *
 * @author 时间的朋友
 * @date 2021-11-22 13:58:37
 */
@Data
@ApiModel(value = "采购申请查询条件对象")
public class PurchaseapplySearchDTO {

	private static final long serialVersionUID = 1L;

	@SearchCondition
	@ApiModelProperty(value = "单位、部门ID")
	private Long deptId;

	@SearchCondition
	@ApiModelProperty(value = "创建人")
	private String createBy;

	@SearchCondition
	@ApiModelProperty(value = "创建人ID")
	private Long createId;

	@SearchCondition(op = SearchOp.BETWEEN)
	@ApiModelProperty(value = "创建时间")
	private List<LocalDate> createTime;

	@SearchCondition
	@ApiModelProperty(value = "采购单位ID")
	private Long purchaseOuid;

	@SearchCondition
	@ApiModelProperty(value = "单据类型：默认为ALL{ DEVICE:资产类；CONSUMABLES：易耗品；All:混合}")
	private String type;

	@SearchCondition(op = SearchOp.LIKE)
	@ApiModelProperty(value = "采购单号")
	private String caseid;

	@SearchCondition
	@ApiModelProperty(value = "预算ID")
	private Long budgetId;

	@SearchCondition
	@ApiModelProperty(value = "预算编号")
	private String budgetNumber;

	@SearchCondition(op = SearchOp.LIKE)
	@ApiModelProperty(value = "预算名称")
	private String budgetName;

	@SearchCondition
	@ApiModelProperty(value = "状态：默认为0{0：草稿、1：处理中、2：已审批、4：作废}")
	private String status;

	@SearchCondition
	@ApiModelProperty(value = "供应商ID")
	private Long supplierId;

	@SearchCondition
	@ApiModelProperty(value = "供应商名称")
	private String supplierName;

	@SearchCondition(op = SearchOp.BETWEEN)
	@ApiModelProperty(value = "期望到货时间")
	private List<LocalDate> arrivalDatetime;

	@SearchCondition
	@ApiModelProperty(value = "采购方式01：邀标、02：自采:03：政府采购")
	private String method;

	@SearchCondition(op = SearchOp.BETWEEN)
	@ApiModelProperty(value = "采购金额")
	private BigDecimal amount;

	@SearchCondition(op = SearchOp.LIKE)
	private String detailed;

	@SearchCondition(op = SearchOp.LIKE)
	@ApiModelProperty(value = "采购说明")
	private String explains;

	@SearchCondition
	@ApiModelProperty(value = "货币类型默认人民币：人民币：、欧元：欧元、美元：美元、法元：法元")
	private String currencyType;

	@SearchCondition(ignore = true)
	@ApiModelProperty(value = "资产名称")
	private String cardName;

	@SearchCondition(ignore = true)
	@ApiModelProperty(value = "资产编码")
	private String cardCode;
}
